<?php /* Smarty version 2.6.16, created on 2009-05-04 22:02:26
         compiled from MassMail.html */ ?>
<?php require_once(SMARTY_CORE_DIR . 'core.load_plugins.php');
smarty_core_load_plugins(array('plugins' => array(array('function', 'language', 'MassMail.html', 16, false),array('function', 'messages', 'MassMail.html', 30, false),array('function', 'str_replace', 'MassMail.html', 36, false),array('function', 'html_options', 'MassMail.html', 67, false),)), $this); ?>
<script type="text/javascript">
<?php echo '
function callNextRound()
{
    document.getElementById(\'btn\').click();
}
function checkRec()
{
    var oSel = document.getElementById(\'dSel\');
    var oInp = document.getElementById(\'iSel\');

    if(oSel.value == \'none\' && oInp.value.length == 0)
    {
    '; ?>

        alert('<?php echo smarty_function_language(array('text' => 'please_select_membership_or_a_membe'), $this);?>
');
    <?php echo '
        return false;
    }
    else
        return true;
}
'; ?>

</script>
<table style="width:100%;" cellspacing="0">
	<tr>
		<td>
		<?php echo $this->_tpl_vars['jsValMess']; ?>

		<?php if (! empty ( $this->_tpl_vars['aErrors'] ) || ! empty ( $this->_tpl_vars['aMess'] )): ?>
		<?php echo smarty_function_messages(array('block' => 'MassMail'), $this);?>

		<br />
		<?php endif; ?>
		<?php if ($this->_tpl_vars['bProc']): ?>
			<div class="border13" style="padding:5px;">
			<script type="text/javascript">window.setTimeout("callNextRound();", 2000);</script>
			<?php echo smarty_function_language(array('text' => 'emails_are_being_sent_out'), $this);?>
 <?php echo smarty_function_str_replace(array('text' => "`sending_ifrom_ito_out_of_itotal`",'iFrom' => ($this->_tpl_vars['iFrom']),'iTo' => ($this->_tpl_vars['iTo']),'iTotal' => ($this->_tpl_vars['iTotal'])), $this);?>

			</div>
			<br /><br />
		<?php endif; ?>
		<form method="post" name="fMail" action="<?php echo $this->_tpl_vars['sUrl']; ?>
" onsubmit="if(checkRec())<?php echo $this->_tpl_vars['jsValidation']; ?>
; else return false;">
		<input type="hidden" name="iCurPage" value="<?php echo $this->_tpl_vars['iCurPage']; ?>
" />
			<table cellspacing="0" width="100%" class="forumline">
			<tr>
				<td class="row-header" colspan="2"><span><?php echo smarty_function_language(array('text' => 'mass_email'), $this);?>
</span></td>
			</tr>
			<tr>
				<td class="catBottom" colspan="2">
				<div style="font-size:10pt;">
					<?php echo smarty_function_language(array('text' => 'from_here_you_can_send_out_emails_t'), $this);?>
<br /><br />
					<b><?php echo smarty_function_language(array('text' => 'note_615'), $this);?>
:</b>
					<ul>
						<li><?php echo smarty_function_language(array('text' => 'this_may_take_a_few_minutes_dependi'), $this);?>
</li>
						<li><?php echo '{%USERNAME%}'; ?>
 = <?php echo smarty_function_language(array('text' => 'the_members_name_when_the_email_wil'), $this);?>
</li>
						<li><?php echo smarty_function_language(array('text' => 'emails_will_be_sent_out_in_html_for'), $this);?>
</li>
					</ul>
				</div>
				</td>
			</tr>
			<tr>
				<th colspan="2" align="center"><span class="gensmall"></span></th>
			</tr>
			<tr>
				<td class="row1" width="25%" style="text-align:right;"><span class="gen"><?php echo smarty_function_language(array('text' => 'send_to'), $this);?>
:</span></td>
				<td class="row2">

					<select id="dSel" name="aMail[to]" style="width:150px;">
						<?php echo smarty_function_html_options(array('options' => $this->_tpl_vars['aShip'],'selected' => $this->_tpl_vars['aMail']['to']), $this);?>

					</select>
					<?php echo smarty_function_language(array('text' => 'or_a_member'), $this);?>
: <input id="iSel" type="text" name="aMail[user]" value="<?php echo $this->_tpl_vars['aMail']['user']; ?>
" size="40" />

				</td>
			</tr>
			<tr>
				<td class="row1" style="text-align:right;"><span class="gen"><?php echo smarty_function_language(array('text' => 'e_mail_total'), $this);?>
</span></td>
				<td class="row2">

					<select name="aMail[total]" style="width:150px;">
					   <?php echo smarty_function_html_options(array('options' => $this->_tpl_vars['aRound'],'selected' => $this->_tpl_vars['aMail']['total']), $this);?>

					</select>

				</td>

			</tr>
			<tr>
				<td class="row1" style="text-align:right;"><span class="gen"><?php echo smarty_function_language(array('text' => 'subject'), $this);?>
</span></td>
				<td class="row2">

					<input type="text" name="aMail[title]" value="<?php echo $this->_tpl_vars['aMail']['title']; ?>
" size="40" />

				</td>
			</tr>
			<tr>
				<td class="row1" style="text-align:right;vertical-align:top;"><span class="gen"><?php echo smarty_function_language(array('text' => 'message'), $this);?>
</span></td>

				<td class="row2">

					<textarea cols="50" rows="20" style="width:100%;" name="aMail[text]"><?php echo $this->_tpl_vars['aMail']['text']; ?>
</textarea>

				</td>
			</tr>
			<tr>
				<td class="catBottom" style="text-align:right;"></td>
				<td class="catBottom" style="text-align:left;font-size:8pt;">
					<input type="submit" id="btn" name="act[SendMail]" value=" <?php echo smarty_function_language(array('text' => 'send_emails'), $this);?>
 " />
				</td>

			</tr>
			</table>
		</form>
		<br /><br />
		</td>
	</tr>
</table>